<?php
/**
 * Created by PhpStorm.
 * User: zc
 * Date: 2019/8/20
 * Time: 18:50
 */
namespace app\common\logic;

use think\Db;

class AboutLogic
{
    private $type = 0;
    private $org_cate_id = 0;

    public function getData()
    {
        $data = Db::name('about')->field('*')->where('type', '=', $this->type)->find();
        return $data;
    }

    /**
     * @param $type
     * @return $this
     */
    public function setType($type)
    {
        $this->type = $type;
        return $this;
    }

    /**
     * @param $org_cate_id
     * @return $this
     */
    public function setOrgCateId($org_cate_id)
    {
        $this->org_cate_id = $org_cate_id;
        return $this;
    }

    /**
     * @return int
     */
    public function getType()
    {
        return $this->type;
    }


}